package com.qiangqiang.resoldhouse.config;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: zqh
 * @date: 2018/8/7 19:24
 * @description:
 */
@Configuration
@MapperScan("com.qiangqiang.resoldhouse.mapper.*")
public class MybatisplusConfig {

    //注入分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }
}
